package com.bdjk.bdmw.InfoGath.common.constants;

import java.util.HashMap;
import java.util.Map;

 
/**
 * @Package com.bdjk.bdmw.exception.constants 
 * @Description: 异常描述和异常编码的常量
 * @author huangyu
 * @date 2014-11-25 下午4:31:21
 */
public class ExceptionConstants {

	
	/******************************* 异常编码 *********************************/
	
	public static final Map<String,String> ERROR_MAP = new HashMap<String,String>();
	
	// DAO层异常
	public final static String ERR_CODE_1001 = "1001";
	private final static String ERR_MSG_1001 = "DAO异常";
	
	// Service层异常
	public final static String ERR_CODE_1002 = "1002";
	private final static String ERR_MSG_1002 = "Service异常";
	
	// Controller层异常
	public final static String ERR_CODE_1003 = "1003";
	private final static String ERR_MSG_1003 = "Controller异常";

	// Jdbc 连接异常
	public final static String ERR_CODE_1004 = "1004";
	private final static String ERR_MSG_1004 = "Jdbc连接异常";
	
	// Jdbc 关闭异常
	public final static String ERR_CODE_1005 = "1005";
	private final static String ERR_MSG_1005 = "Jdbc关闭异常";
	
	// Jdbc DAO 异常
	public final static String ERR_CODE_1006 = "1006";
	private final static String ERR_MSG_1006 = "Jdbc DAO 异常";
	
	// Jdbc Service 异常
	public final static String ERR_CODE_1007 = "1007";
	private final static String ERR_MSG_1007 = "Jdbc Service 异常";
	
	static {
		ERROR_MAP.put(ERR_CODE_1001, ERR_MSG_1001);
		ERROR_MAP.put(ERR_CODE_1002, ERR_MSG_1002);
		ERROR_MAP.put(ERR_CODE_1003, ERR_MSG_1003);
		ERROR_MAP.put(ERR_CODE_1004, ERR_MSG_1004);
		ERROR_MAP.put(ERR_CODE_1005, ERR_MSG_1005);
		ERROR_MAP.put(ERR_CODE_1006, ERR_MSG_1006);
		ERROR_MAP.put(ERR_CODE_1007, ERR_MSG_1007);
	}

	
}
